const zongHe = {
  data(){
    return {
      zongHe:{
        auditor: '',
        auditorIdList: [],
        beizhu: "",
        docTitle: "",
        endTime: "",
        faWangDanWei: "",
        jingBanRenYiJian: "",
        mingCheng: "",
        shiYou: "",
        startTime: "",
        yinZhangType: "",
        yongYinFenShu: 1,
        zongHeType: ""
      },
      docTitleList:[
        {label:'徐州市铜山区城市建设投资有限责任公司',value:'徐州市铜山区城市建设投资有限责任公司'},
        {label:'徐州兴铜城市建设投资控股集团有限公司',value:'徐州兴铜城市建设投资控股集团有限公司'},
        {label:'徐州市百高建设发展有限责任公司',value:'徐州市百高建设发展有限责任公司'},
        {label:'徐州新铜物业管理有限公司',value:'徐州新铜物业管理有限公司'},
      ],
      uploadFileList:[],
      userList: [],
    }
  },
  created() {
    this.getUserList()
  },
  methods:{
    getUserList(){
      this.mixinParams.UserAPI.getSelectList('').then(res=>{
        this.userList = res.result
      })
    },
    beforeUpload(file){
      const isLt2M = file.size / 1024 / 1024 < 2
      if (!isLt2M) {
        this.$message.info('文件大小请勿超过 2MB!')
      }
      return isLt2M
    },
    uploadSuccess(res, file){
      this.baoXiao.fileList.push(res.result)
    },
    handleRemove(file){
      const fileId = file.fileId
      for(let i in this.baoXiao.fileList){
        const el = this.baoXiao.fileList[i]
        if(el.fileId === fileId){
          this.baoXiao.fileList.splice(i,1)
        }
      }
    }
  }
}

export default zongHe
